package com.cn.wanxi.util;

public class Test {
    public static void main(String[] args) {
        String idString = "fdsafa";
//        Integer id = "".equals(idString) ? 0 : Integer.parseInt(idString);
        Integer id = 0;
        try {
            id = Integer.parseInt(idString);
        } catch (Exception e) {

        }
        System.out.println(id);
    }
}
